package cnpm.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class HelperCreateEmployeeID {

	public static String createEmployeeID(){
		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Calendar cal = Calendar.getInstance();
	    String currentDate = dateFormat.format(cal.getTime());
	    String[] temp = currentDate.split(" ");
	    String[] tempDate = temp[0].split("-");
	    String[] tempHours = temp[1].split(":");
	    return "HCMUTE_"+tempDate[0]+tempDate[1]+tempDate[2]+tempHours[0]+tempHours[1]+tempHours[2];
	}
}
